﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Logistics.DataManage;
using System.Data;

namespace Logistics.Win
{
    /// <summary>
    /// Interaction logic for WinLogs.xaml
    /// </summary>
    public partial class WinLogs : Window
    {
        public WinLogs()
        {
            InitializeComponent();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //加载操作日志数据
            DateTime startDate = DateTime.Now.AddDays(-100);
            DateTime endDate = DateTime.Now.AddDays(1);
            DataSet ds = BillLogsDAO.GetOperationLogs(GlobalObjects.CurrentUser.UserID, startDate, endDate);
            this.dataGridOprLogs.ItemsSource = ds.Tables[0].DefaultView;
        }
    }
}
